﻿using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Master;

namespace Thaire.Investment.Repository.Mapping
{
    class CounterPatiesMap : ClassMap<CounterParties>
    {
        public CounterPatiesMap()
        {
            Table("COUNTERPARTIES");
            Id(x => x.CounterpartiesId, "COUNTERPARTIES_ID").GeneratedBy.Identity();

            Map(x => x.CounterpartiesCodeName, "COUNTERPARTIES_CODE_NAME");
            Map(x => x.CounterpartiesNameEn, "COUNTERPARTIES_NAME_EN");
            Map(x => x.CounterpartiesNameTh, "COUNTERPARTIES_NAME_TH");
            Map(x => x.CounterpartiesAddress, "COUNTERPARTIES_ADDRESS");
            Map(x => x.CounterpartiesContact, "COUNTERPARTIES_CONTACT");
            Map(x => x.CounterpartiesEmail, "COUNTERPARTIES_EMAIL");
            Map(x => x.CounterpartiesTel, "COUNTERPARTIES_TEL");
            Map(x => x.CounterpartiesFax, "COUNTERPARTIES_FAX");
            Map(x => x.CounterpartiesGroupCounter, "COUNTERPARTIES_GROUP_COUNTER");
        }
    }
}
